﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="sqle.aspx.cs" Inherits="GPCSC.Web.sqle" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
       <title>淮安市领导干部下基层活动网站</title>
<meta name="KEYWords" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
<meta name="DEscription" content="淮安市领导干部下基层活动,三解三促,三进三帮" />
    <script type="text/javascript" src="Scripts/jquery-1.4.1.min.js"></script>
    <script>
        function getSelectedText() {
            if (window.getSelection) {
                return window.getSelection().toString();
            } else if (document.getSelection) {
                return document.getSelection();
            } else if (document.selection) {
                return document.selection.createRange().text;
            }
        }
        function test() {
            //            alert()
            var t = getSelectedText();

//            if (t.length > 0) {
//                var content = document.getElementById('repFirstpage').innerHTML;
//                __global_notes__count++;
////                content = content.replace(t, "<span style='background-color:#ff0000'><strong>[" + __global_notes__count + "]</strong>" + t + "</span>"); document.getElementById('repFirstpage').innerHTML = content;
////                $('#divNotes').show(100);
//                $("#TextBox1").select();

            //            }
            //            alert(t);
            var s = $("#Panel2_Panel4_Label1").html();
            //            alert($("#ids"));
            //            $("#ids").html(t);
           //    alert(t);
           //alert(t);
           //alert(t+s);
            X('Window1').box_show('dsqle.aspx?type='+s+'&id=' + t, '数据');
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
 <ext:PageManager ID="PageManager1"   runat="server">
    </ext:PageManager>
    
    <ext:Panel ID="Panel2" runat="server"    Height="700px"   Width="1000px" ShowBorder="True"
        BodyPadding="5px" Layout="Column" ShowHeader="True" >
        <Items>
            <ext:Panel ID="Panel1" Width="200px" EnableBackgroundColor="true" runat="server"
                BodyPadding="5px" ShowBorder="true" ShowHeader="true">
                <Items>
                  <ext:Tree runat="server" EnableArrows="true" Height="400px" ShowBorder="false" ShowHeader="false" 
                         AutoScroll="true" ID="treeMenu" >
                    </ext:Tree>
                </Items>
            </ext:Panel>
            <ext:Panel ID="Panel4" ColumnWidth="100%" EnableBackgroundColor="true" runat="server"
                BodyPadding="5px" ShowBorder="true" Height="400px" ShowHeader="true" Layout="Fit">
                <Items>
                    <ext:DropDownList ID="DropDownList1" DataTextField="name" DataValueField="name" runat="server" Label="Label"  AutoPostBack="true"  OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged">
                    </ext:DropDownList>
                    <ext:Label ID="Label1"  runat="server" Label="Label" Text="Label">
                    </ext:Label>
                <ext:TextArea ID="cont" runat="server" Label="sql语句" Height="300px" Width="700px"  >
            
            </ext:TextArea>
                    <ext:Button  ID="Button1" EnablePostBack="false" OnClientClick="test();" runat="server" Text="执行">
                    </ext:Button>
                </Items>
            </ext:Panel>
         
        </Items>
    </ext:Panel>
    <ext:Window ID="Window1" Title="编辑" Popup="false" EnableIFrame="true" runat="server"
        IFrameUrl="about:blank" EnableMaximize="true"  Target="Self" IsModal="True" Width="750px"
        Height="350px">
    </ext:Window>
  <input type="text" runat="server" id="ids" style=" display:none" />
 
    </form>

</body>
</html>
